<html><head><title>Area Under Curves</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="Rchm.css">
</head>
<body>

<table width="100%"><tr><td>auc(modtools)</td><td align="right">R Documentation</td></tr></table><object type="application/x-oleobject" classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e">
<param name="keyword" value="R:   auc">
<param name="keyword" value=" Area Under Curves">
</object>


<h2>Area Under Curves</h2>


<h3>Description</h3>

<p>
This function compute the area under curves.
</p>


<h3>Usage</h3>

<pre>
auc(x,y)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>x</code></td>
<td>
a numeric vector</td></tr>
<tr valign="top"><td><code>y</code></td>
<td>
a numeric vector</td></tr>
</table>

<h3>Value</h3>

<p>
The function returns a numeric value corresponding to the area under the curves.</p>

<h3>Examples</h3>

<pre>
# y &lt;- rpois(1:10)
# d1 &lt;- density(y)
# auc(d1$x,d1$y)
</pre>



<hr><div align="center">[Package <em>modtools</em> version 1.0-7 <a href="00Index.html">Index</a>]</div>

</body></html>
